<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('钉钉产码列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								钉钉主号id：<input type="text" name="masterId"/>
							</li>
							<li>
								金额：<input type="text" name="amount"/>
							</li>
							<li>
								状态 0未使用  1已使用：<input type="text" name="ddStatus"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="channel:channelCode:add">
					<i class="fa fa-plus"></i> 批量产码
				</a>
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="channel:channelCode:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('channel:channelCode:edit')}]];
        var removeFlag = [[${@permission.hasPermi('channel:channelCode:remove')}]];
        var prefix = ctx + "channel/channelCode";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "钉钉产码",
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'ddId', 
					title : '',
					visible: false
				},
				{
					field : 'channelId', 
					title : '归属通道商id',
					sortable: true
				},
				{
					field : 'masterId', 
					title : '钉钉主号id',
					sortable: true
				},
				{
					field : 'slaveId', 
					title : '钉钉副号id',
					sortable: true
				},
				{
					field : 'amount', 
					title : '金额',
					sortable: true
				},
				{
					field : 'mark', 
					title : '备注信息',
					sortable: true
				},
				{
					field : 'ddMethod', 
					title : '方法',
					sortable: true
				},
				{
					field : 'cmd', 
					title : '方式',
					sortable: true
				},
				{
					field : 'groupBillName', 
					title : '钉钉收款备注',
					sortable: true
				},
				{
					field : 'bizId', 
					title : '钉钉转账业务id',
					sortable: true
				},
				{
					field : 'createBy', 
					title : '创建者',
					sortable: true
				},
				{
					field : 'createTime', 
					title : '创建时间',
					sortable: true
				},
				{
					field : 'ddStatus', 
					title : '状态 0未使用  1已使用',
					sortable: true
				}
		        ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>